Skip to content

Add TypeScript runtime actions documentation#521

Merged
pru55e11 merged 3 commits intomainfrom
docs/typescript-runtime-actions
Mar 26, 2026
Merged

Add TypeScript runtime actions documentation#521
pru55e11 merged 3 commits intomainfrom
docs/typescript-runtime-actions

Conversation

@pru55e11
Copy link
Copy Markdown
Collaborator

@pru55e11 pru55e11 commented Mar 26, 2026

Summary

  • New page: typescript-actions.md — Dedicated guide for using TypeScript in Runtime actions, covering prerequisites (ts-loader, typescript), 3-step setup, known limitations, ESM project considerations, and debugging tips.
  • Updated webpack-configuration.md — Added .cjs extension support (addresses webpack configuration can also use the .cjs extension #497) and updated the ES module syntax section with the .cjs workaround. Added TypeScript cross-reference.
  • Updated configuration.md — Added a note that the function field supports .ts files, and linked to the new TypeScript Actions page.
  • Updated index.md — Added TypeScript Actions to the guides index for discoverability.

Motivation

TypeScript support for runtime actions works today via Webpack's ts-loader, but is not documented in the public docs. The general impression among developers is that TypeScript is not supported for runtime actions. This was raised in the #app-builder Slack channel by Ivan Porto, and confirmed by @shazron who pointed to the aio-cli-plugin-app-dev README as the source of truth.

The .cjs extension change also addresses #497.

Test plan

  • Verify the new typescript-actions.md page renders correctly
  • Verify cross-links from webpack-configuration.md, configuration.md, and index.md resolve correctly
  • Confirm the setup steps match the aio-cli-plugin-app-dev README

Patrick Russell added 2 commits March 26, 2026 10:57
App Builder supports TypeScript for runtime actions via Webpack's
ts-loader, but this capability was essentially undiscovered because
it was not documented in the public docs. This change adds a dedicated
guide and cross-links it from existing configuration pages.

Changes:
- New page: typescript-actions.md covering prerequisites, setup,
  limitations, and ESM project considerations
- webpack-configuration.md: add .cjs extension support (addresses #497)
  and TypeScript cross-reference
- configuration.md: note that function field supports .ts files,
  add TypeScript Actions to "Learn more" list
- index.md: add TypeScript Actions link under Configuration section

References:
- https://github.com/adobe/aio-cli-plugin-app-dev#typescript-support
- #497

Made-with: Cursor
Add the new TypeScript Actions page as a sub-item under
Configuration in src/pages/config.md so it appears in the
site sidebar navigation.

Made-with: Cursor
Copy link
Copy Markdown
Collaborator

@iivvaannxx iivvaannxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Comment thread src/pages/guides/app_builder_guides/configuration/typescript-actions.md Outdated
- Trim Limitations section to only the TypeScript-specific debugging
  note; link to webpack-configuration.md for general webpack constraints
- Clarify that the typescript-app quickstart uses the older manual tsc
  approach, and that the ts-loader method on this page is simpler

Made-with: Cursor
@pru55e11 pru55e11 merged commit 5df89e1 into main Mar 26, 2026
2 checks passed
@pru55e11 pru55e11 deleted the docs/typescript-runtime-actions branch March 26, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants